<?php if ($rules): ?>
    <?php foreach ($rules as $rule): ?>
        <div class="form-group span-left">
            <label>【<?= $rule->currency->title ?>】提现规则</label>
            <p class="help-block">
                最小提现数量:
                <a class="text-edit editable editable-click" href="#" data-type="text" data-title="" data-table="summer_hjd_wd_rule" data-pk="<?= $rule->id ?>" data-name="wd_min"><?= $rule->wd_min ?></a>
                ,最大提现数量:
                <a class="text-edit editable editable-click" href="#" data-type="text" data-title="" data-table="summer_hjd_wd_rule" data-pk="<?= $rule->id ?>" data-name="wd_max"><?= $rule->wd_max ?></a>
                ,提现整数倍:
                <a class="text-edit editable editable-click" href="#" data-type="text" data-title="" data-table="summer_hjd_wd_rule" data-pk="<?= $rule->id ?>" data-name="wd_mul"><?= $rule->wd_mul ?></a>
                ,提现手续费:
                <a class="text-edit editable editable-click" href="#" data-type="text" data-title="" data-table="summer_hjd_wd_rule" data-pk="<?= $rule->id ?>" data-name="wd_fee"><?= $rule->wd_fee ?></a>
                %
            </p>

            <div class="field-switch">
                <p class="help-block">可提现日期:</p>
            </div>
            <p style="height: 200px;overflow-y: auto">
                <a class="days-edit editable editable-click " href="#" data-type="checklist" data-title="" data-table="summer_hjd_wd_rule" data-pk="<?= $rule->id ?>" data-name="wd_days" data-value="<?= $rule->wd_days ?>" ></a>
            </p>
            <div class="field-switch">
                <p class="help-block">可提现星期:</p>
            </div>
            <p>
                <a class="weeks-edit editable editable-click " href="#" data-type="checklist" data-title="" data-table="summer_hjd_wd_rule" data-pk="<?= $rule->id ?>" data-name="wd_weeks" data-value="<?= $rule->wd_weeks ?>" ></a>
            </p>
            <div class="field-switch">
                <p class="help-block">可提现时间:</p>
            </div>
            <p>
                <a  class="combodate-edit editable editable-click editable-empty editable-open" href="#" data-type="combodate" data-template="HH:mm:ss" data-format="HH:mm:ss" data-viewformat="HH:mm:ss" data-table="summer_hjd_wd_rule" data-pk="<?= $rule->id ?>" data-name="wd_start"><?= $rule->wd_start ?></a>
                --
                <a  class="combodate-edit editable editable-click editable-empty editable-open" href="#" data-type="combodate" data-template="HH:mm:ss" data-format="HH:mm:ss" data-viewformat="HH:mm:ss" data-table="summer_hjd_wd_rule" data-pk="<?= $rule->id ?>" data-name="wd_end"><?= $rule->wd_end ?></a>
            </p>
            <div class="field-switch">
                <p class="help-block">规则描述:</p>
            </div>
            <p>
                <a class="textarea-edit editable editable-pre-wrapped editable-click" href="#" data-type="textarea" data-title="规则描述" data-table="summer_hjd_wd_rule" data-pk="<?= $rule->id ?>"  data-name="wd_text" ><?= $rule->wd_text ?></a>
            </p>
            <div class="field-switch">
                <p class="help-block">提现开关:</p>
            </div>
            <label class="custom-switch switch">
                <input type="checkbox" data-table="summer_hjd_wd_rule" data-id="<?= $rule->id ?>" data-field="status" <?php echo $rule->status==1 ? 'checked="checked"' : '';  ?> >
                <span>
                    <span>开</span>
                    <span>关</span>
                </span>
                <a class="slide-button"></a>
            </label>
        </div>
    <?php endforeach ?>
<?php else: ?>
    <li class="no-data">暂未配置信息</li>
<?php endif ?>